package com.ruleengine.executer.impl;

import org.apache.log4j.Logger;

import com.ruleengine.context.IWorkflowConext;
import com.ruleengine.endpoint.data.IEndpointData;
import com.ruleengine.executer.InstructionExecuter;
import com.ruleengine.executer.exception.InstructionExecuteException;
import com.ruleengine.instruction.impl.GotoInstruction;

public class GotoInstructionExecuter implements InstructionExecuter<GotoInstruction>{
    private static Logger logger = Logger.getLogger(GotoInstructionExecuter.class);
    
    public boolean execute(IWorkflowConext context, IEndpointData data,
            GotoInstruction instruction) throws InstructionExecuteException {
        // TODO Auto-generated method stub
        context.addPcCount(instruction.getGotoOffset());
        return true;
    }

}
